#ifndef GL_RENDERER_H
#define GL_RENDERER_H

#include "MWRenderSystem.h"

namespace Myway {

	class GLRenderSystem : public RenderSystem
	{
	public:
		GLRenderSystem(HWND hWnd);
		~GLRenderSystem();

		virtual void OnResize(int w, int h);

		virtual void BeginScene();
		virtual void EndScene();

		virtual void Clear(unsigned int color);

		virtual void SetTexture(int stage, Texture * texture);

		virtual void RenderUI(const UIVert * vb, int primCount);

	protected:
		HWND mWnd;
		HDC mDC;
		HGLRC mRC;
		int mWidth, mHeight;

		TextureManager * mTextureManager;
	};

}

#endif